

jQuery(function ($) {
    var mySwiper = new Swiper('.swiper-container', {
        slidesPerView: 3,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
    $('.album_header li').click(function () {
        var index = $(this).index();
        $(this).addClass('on').siblings().removeClass('on');
        $('.album_body ul').eq(index).addClass('open').siblings().removeClass('open');
    });
    //获取图片的路径放大
    $('.album_body img').click(function () {
        var src = $(this).attr('src');
        imgZoomIn(src);
    });
    //放大函数
    function imgZoomIn(src) {
        $("#showImage").attr('src', src);
        $("#showImgModal").modal("show");
    };
});